import re

pattern = re.compile('\(\w+\)')
sets = []

f = open('prices.txt', 'r')

for line in f:
    match = pattern.search(line)
    if match:
        if not sets.count(match.group(0)):
                          sets.append(match.group(0))

sets.sort()
for item in sets:
    print item
